﻿
$(function () {
    if (navigator.userAgent.indexOf("QQ") > -1) {
        var shareTile = '感觉对你有用，就分享给你了';
        var production = window.location.href.indexOf('https://webservice.cx580.com/') > -1 ? true : false; //是否为生产环境
        var shareUrl = production ? 'https://webservice.cx580.com/cweb/activity/2017/06/sixyears/index.html' : 'http://192.168.1.165:9071/cweb/activity/2017/06/sixyears/index.html';
        var shareImg = 'https://webservice.cx580.com/cweb/activity/2017/06/sixyears/images/showImg.png';
        var shareDesc = '我已经领取了这个礼包,优惠很实用,好东西,一定要与你分享。';
        
        var baseApiUrl = production ? "https://webservice.cx580.com/" : "http://192.168.1.165:9071/";
     //   alert('QQ分享 = ' + baseApiUrl);
        setShareInfo({
            title: shareTile,
            summary: shareDesc,
            pic: shareImg,
            url: shareUrl,
            WXconfig: {
                swapTitleInWX: true,
                appId: '',
                timestamp: '',
                nonceStr: '',
                signature: ''
            }
        });

    }

   
});